package com.springboot.demo.design.pattern.instruction;

import com.springboot.common.entity.request.ParameterBody;
import com.springboot.demo.design.pattern.form.Form;

/**
 * 抽象指令器
 *
 * @author supu
 * @date 2019-03-19 16:34
 **/
public abstract class AbstractInstruction<U, V extends ParameterBody> implements Instruction<U, V> {
    protected final Form<U, V> form;

    public AbstractInstruction(Form<U, V> form) {
        this.form = form;
    }

    @Override
    public Form<U, V> getForm() {
        return form;
    }
}
